package com.chenfan.mcn.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author: WQ
 * Date 2023/4/27
 * @描述 直播场次新建
 */
@Data
public class LiveSessionSaveDTO {

    private Long id;

    @NotEmpty(message = "直播标题不能为空")
    @Length(max = 50)
    private String liveTitle;

    @NotNull(message = "直播日期不能为空")
    private Date liveDate;

    @NotNull(message = "红人不能为空")
    private Long starId;

    @NotNull(message = "红人平台不能为空")
    private Long starPlatId;

    @NotNull(message = "平台不能为空")
    private String platformId;

    @NotNull(message = "商品主要品类不能为空")
    private String commodityClass;
}
